make localstorage working for language so it does revert back on page load and for next page