added xml search and preferences