adding close button functionality to home panels