Modify dialog helper