tested click fucntion