fixed small memory leak caused by click events that were not removed