implement listen for click event