added redirect in controllers