add actions for buttons