UI fix - get rid of flicker by showing panel only after the DOM is created