finish action of button