implemented addressbook logic