added action events for buttons