Changed toast to dialog