added footer, fixed some templates