now action is performed after the end of the button's animation