Centralized logic to determine the selected subsection