Fixed bug with fragment_main. Turn on/off cam.preview added