refactored out the global 'ui.currentSection' to use the appState service.