added immediatelyResetOpenedSections to reset a table view