Only show detail panel if there is a record selected