close dialog once the marker has been submitted
few minor fixes