Added functionality to pause and resume in MapScreen