update code.
add wifi, bluetooth,torch.
move to dialog mode.