making MHEditNameWindowController more generic