moved window switching to composite action so that it is only executed once during the buff round