Changed listener for redirect.