add footer and replace 'empty' content