added button to toggle infowindow

also removed useless legends div