Fix selection handling for DetailsView