initial livesearch patter implementation