window autocreate at edge
removed redundancy