change router to keep routes ordered