Added method to set labels in the popup