initial plain window code