modification of controller and router