added detail view as a table