fix bug where confirm to quit metadata edit would pop more than once