Screen Resize working as intended