refactor routers,controllers,models,collections