modify topics_controller.rb to keep conssistent