add click functionality