hide window until fully loaded