added buttons.c and buttons.h