edit handling for tag dialog