refactory iotdemo2 and add quit menu
add quit for iot demo3