Add code changes for HeadView and FooterView.