implement searchbyname event