Assigned calls to variables for passing within displayAlert function
added conditions for alert calls/ comments
added conditions for displayAlertWithString call/ comments
added conditions for displayAlertWithString method calls/comments