refactoring twilio redirect