Detail view

I've added a detail view as well as fixed a couple of spots in the template that had issues.
Sorry to withdraw the previous version, but I noticed I had some of my own personal changes polluting the code and revised.