def index
    all_topics = Topic.all
    @topics = Array.new
    all_topics.each do |topic|
      if topic.parent == 0