Add the methods to update contact and device