Basic function structure for directory edit
Fixing directory delete url + arg in view