update rules to textarea