add settings persistence to local storage