search works on index page