fixed redirecting from controllers