add footer and fix nabvar