improved the waitdailog-design