capture button functional