Orientation fix for the  mobile and error handiling: if map is not available for the device