add footer and some minor changes