change map click event order