Refactored and improved AlertView class