Added onClick functionality to buttons