Converted javascript confirmation dialog to jquery UI dialog (needs style)