added example for redirect with custom view