changes for dialog