modify dialog demo