Set Ability to switch between list and map on main page