declared the onClick method in the header file