add redirect method of Controller