Using click instead of binding the click event