Conditional rendering in a popup only works if the model of the rendering condition is the same model as that of the model of the "context" that opened the popup. (i.e. The model of the page title of the button that opened the popup or the model of the table that popup is a row action of).