add footer and templete