refractored search to use knockout lib