add footer functionality