Implemented the action button.