convert setup and click events