redirectAndTerminate() will do location instead of refresh