add video record functiong