added basic final dialog box functionality using jQuery UI