Fixed redirect and removed alert