fixed details view which wasn't working