almost done with moving existing menu functionality to menu bar. small bug left