corrected spelling mistake
now storing last sidebar url even over browser closes by using localstorage