update functions of focus and camera switch and so on