on click event fix