add redirect method