add hash and localStorage