added the javascript alert/redirection