now using templates directories instead of views