Where to put Blueprint code for a menu driven game?

Thanks. What would be the advantage of the player controller over the UMG?