Changed url parameter passing to localStorage