mdDetailView code cleanup.