rearranged code to put container and footer code before the grid.