#4632: Use jqueryui dialog to handle popup behaviors.