implement actions in the buttons