added search. Removed userdefaults every time app is launched