added function for edit button and delete button for infowindow