adds detail view