1. removed unnecessary <a> for openning dialogs.
2. fixed bug - markers being clicked again and again will not be
rendered with correct color and popped up correctly.