added grid dialog