refactory Routes to external file