Add currentProfile to localstorage when changing browser