fix formatting - apply window selection if not creating a new node