trying to get click fucntion to work