show buttons and do action for button