Added onClick to the buttons