changed window pointers to pages