Added checkbox to enable/disable detaching window from menu bar