some work on dialog