Changed so optionsState calls settings instead of mainView