add onClick method