refactored routes, applied active class for nested child routes