add  delegate (footer and header view)