change add-contact to use state not refs