Assigned calls to variables for passing within displayAlert function