Add closeWindow