           count: userList.users.length
         )
       if userList.duplicates and userList.duplicates.length
-        $user_list_duplicates_found.appendTo($user_lists_processed_people).find(".message_content").text I18n.t("duplicate_users",
+        UL.$user_list_duplicates_found.appendTo($user_lists_processed_people).find(".message_content").text I18n.t("duplicate_users",
           one: "1 duplicate user found, duplicates have been removed."
           other: "%{count} duplicate user found, duplicates have been removed."
         ,
           count: userList.duplicates.length
         )
       $.each userList.users, ->
-        userDiv = $user_lists_processed_person_template.clone(true).fillTemplateData(data: this).appendTo($user_lists_processed_people)
+        userDiv = UL.$user_lists_processed_person_template.clone(true).fillTemplateData(data: this).appendTo($user_lists_processed_people)
         userDiv.addClass("existing-user").attr "title", I18n.t("titles.existing_user", "Existing user")  if @user_id
         userDiv.show()
 

    UL.updateCounts()
    if already_existed then 1 else 0

$ UL.init
export default UL

    already_existed = true
    unless $("#enrollment_" + enrollment.id).length
      already_existed = false
      $enrollment = UL.$enrollment_blank.clone(true).fillTemplateData(
        textValues: [ "name", "membership_type", "email", "enrollment_id" ]
        id: "enrollment_" + enrollment.id
        hrefValues: [ "id", "user_id", "pseudonym_id", "communication_channel_id" ]
