remove the pages when reset the character