fix marker add/remove anomalies. fixed event listener problem