rename captureView function