correction of some bug and implementation of the control way PText resume