hooked up buttons and layout