work on dialog submission