Finish adding search and using sharedpreferences