adds routing to application