detail view now working