use userdefaults to store data and singleton to provide functionality between 2 controllers
added a bug where two controllers had delegates firing at the same time