improvements - made toggle sticky when localstorage is available in browser