click events

changed, but still gets errors