onMessage
add search in history