remove window from app delegate