refactoring tour,ajax search