updated dialogto work with all versions of windows