add redirect in the method index of the controller