def destroy
    @topic = Topic.find(params[:id])
    if @topic.destroy
      redirect_to admin_level_path(@topic.level_id), notice: "Topic successfully deleted."
    else