setter for onStorage