modify app router machanism