Added methods in MapsActivity

Added onPause and onResume