added function call for click map