refactor chestdialog, add new jqueryui styles