add redirect method to router