Hide the selector panel on click

When clicking on a panel which is already show, hide the panel