Added simple logic for section nav in the sidebar