added some functions to some buttons