moved footer from main to template