creating in the window