Refactor contentList controller