added state options, replacement of useLocalStorage