window now inserts to tree