Added in basic window functionality