restore the layoutchange handler in textservice