now using jquery modals rather than javascript alerts