refactor routing file structure