tween dialog

add tween to the show and hide of the dialog window. so that the window
wont close sunddenly in the same time it shows.