when loading mui definition from text, don't create styles that already exist; properly manage controls for ebook window (fixes issue 2265)