Added the detail template and changed the view