adding dialog helper