Refactor add_button; Add modal confirm function