add a close button to info panel