Refactored code to show 1-button alert views