set-up for buttons and menus working.