add triggers for buttons