add search function
optimization the coredata and ui