Adds the get header andd footer function in the view class.