     |> build_assoc(:annotations)
     |> Annotation.changeset(annotation_params)
 
-    case Repo.insert(changeset) do
+    case insert_annotation_and_tags(changeset) do
       {:ok, annotation} ->
         annotation = Repo.preload(annotation, :annotation_tags)
 

        |> assign(:annotation, annotation)
    end
  end
end

  """
  use Core.Web, :controller
  alias Core.Annotation
  alias Core.AnnotationTag

  plug :find when action in [:update, :delete, :show]
  plug Core.Auth, %{key: :annotation,
