added window functionality. new tuple windows not yet working