Refactoring, add ajax contacts