adding Dialog class