[IMP]planner:make template for planner footer and improved code.