change: dialog function added