creates a window