added window to app delegate