Add controller and template for detail view.