Initial window code for root