Incorporated new directoryCtrl