change popup to dialog