Add showDialog method, with new dialog box.

1. Separate the name box and dialog text box.
2. New align method.
3. Adjust the width of name box dynamically with the length of name
string.