reformatting rows in details page, and added css class