adds events for buttons and menu items that should be filled