Working header/footer (div tags of broken functions are hidden by commits)