Adding panel hiding capability when clicking on its title