addContact function is initiated