add transition to hidden the button