fixes bug iphone rotation doesn't change the page resolution