Refactor header and footer, remove nested iframe