Fixed the dialog close button question.

The origin button is not a good runner in the dialog title.
So I fixed it in my branch.

P.S. I like your project, but it sometimes not work so pretty.
U need to mix this style in the origin element, that's the really good to use.