Programmed functionality for buttons