added new function to dialogutil