modify alertRedirect