add time delay to dialog popups