added search items and fixed a bug that cannot copy message