add support for device orientation changes