Adding callback for click event handler