using userdefaults to persists data across controllers