added click event to map