added code to insert marker on double click