addded functions to all buttons