add update contact functionality