add update person function