Refactored postsList to use controllers