code cosmetics and report windows maximized