add basic code to create a window