change widget to dialog