extract statusBar, trayMenu and quitItem methods