Adds a menubar toggle functionality in popup ui