- Rewrote section that creates the window