Refactored alert view method names and added comments