changed redirect url in redirect method