Added devMode and map click listener