changes router to take handler factory in initializer