add functionality to some buttons