Working todo with ajax. Adding and searching with Ajax
Refactoring