changed the footer, buttons, and more refactoring