outputdlg: set prev_id for handling a rename