Moving onClick to use React's handling