pause handling