Moved popup definition to Result model.