initial click event implementation