Add confirm button and refractor.