add ajax search

added ajax + some fix