Update rule on ajax success