setup detail view