implemented click event for each bubble