Add routing file
remove redundant code