To use a confirm-modal to finish a paper