added window selection for instances