add a capture button listener