fix the close button on the panel