edit search method