Added directory controller actions and updated routes