Added onclick to buttons