Modified settings screen to support updating global variables