 })

        $("#editModal").modal('show');
      });
    }

    // Update user account
    function updateAccount(){
      console.log("Info: updating user");
      id = "{{ page_user_id }}"
      first_name = $("#accountFirstName").val();
      last_name = $("#accountLastName").val();
      email = $("#accountEmail").val();
      action = 'update_user_details'
      $.post("{{ url_for('api') }}/users/update_user", { id: id, action: action, first_name: first_name, last_name: last_name, email: email }, func