refactor routes page