made global variables static, added comments for cross-section persistence issue
Merge remote-tracking branch 'origin/sdm' into sdm
Fixed Index All bug where it crashed when the user tried to search with the sections closed