add redirect method to controller