Trim down grid code, separate panels into separate partial, add beginning code for headers