add click event to switch between markers