repaired click event