Removed second instantiation of captureButton