code clean up and UI change for event.html and map_view.html