added text adding and removal events