clean up
clean up
add delay for testing.
fix dialog progress issues.