updating contoller