some refactoring to lists controller