creating a window