change widget to dialogue