Adding functionality to the remaining buttons