Added localstorage and also added an interceptor globally and locally