preparation for open in dialog