coding for camera UI