Delete menu bar when not needed, references #502