Slight simplification of detail panel code.
For #56: clicks on trailnames now update detail panel.