update the main router