some bug fixes in general DetailView