adding listener for switchCam button