updateContact method updated