create detail view.