set model in the directory route