topics controller and specs refactoring