fixing click event