Moved common header and footer code to includes