add rule, remove from history