refactored sections controller