Added onclick actions to buttons