Ferguson wins the battle as Rooney decides to sign new contract