Update device states