Layouts are initialized only at program startup. Once in the display loop, no further updates to the layout can be made.
To make dynamic layout changes possible, the display loop would need to accept an external signal to prompt for refreshing the plugin layouts.