Added functionality when resizing the window.
Deleted classes