made footer template optional