Added local storage to save the global variables
Modified settings screen to support updating global variables