added detail view and updated table