dialog working
final