auth before edit window