using screen mode class rather than directly setting the window extended state in the main UI class