refactoring; implementing contacts editing; contacts are edited in ajax only