Update to window size
Removed unnecessary method