fixed crash with reusing cells and inserting items
added set for headers and footers so they appear and disappear correctly