add footer and fix match delete