refactor routers structure and update npm packages