subscribe update and delete function