Implemented the ability to change the window size