Hopefully fixes css linkages problems, templatizes things better