modify directory controller