finish implementation of live search, need to fix loop back bug