Fixed up views and added template debugger