change `onClick` to `click`