changed capture frame from button to toggle