replaced deleteSection by deleteSectionById