search finally works like i wanted it to - big thanks to @MladenPrajdic