list and items controllers refactoring