Added events for orientation change and screen resize