Refactoring listing pages and partials