add a menu bar
Event handling