added replacing to rich text in forms