update the controller for dnd