set actions for buttons