added search all and get x results functionality