Prevented GUI flickering during initialization