polishing registration dialog (see issue #497)