updates to views and templates to add caching to detail.html
adds migraton files