Added drawing of the window