Added attributes to detail view and ER model