fixed the snippets controller to add the template dir instead of setting it