Added functionality to get classes and students information and display them on the popup.