Add actions to buttons