move outbound url routing to application controller