functioning toggling for map/list views & buttons