Deleted old window resizing code, keeping new one