Panel close icon and collapse panel flickering fixed