functionality to buttons added