Refactored InfoDialog class into GenericInfoDialog, so that the same class could be used for all the dialogs. It now takes the data and title as parameters, instead of having them hard-coded within the class.