add search controller
fix qualifications and works with jquery