hideMenuBarIcon functionality