adding buttons and events to menu view