implemented switching between map and list fragment