add footer and header to record dialog