updated the layout of minimized and maximized window