Changed declared windows so they don't override onShow method, which now handles window resizing if default height doesn't fit in the browser window.