moved all event listeners on map to a function, stopped collapse out of some legend items from bouncing