Removing redundant click event