minor refactor in listing controller