adds details view and template