updated the display in popup code