added singletonWindow support for ui menues