added press action for the button