formatted the list popup code: