Adding transitions for buttons