store user rules to local storage so they  are reloaded automatically.