fix update / inser dialogs