Adding a dispatcher based on view type
Proper use of os.path.join