be/popupbubble: using popup() options

Instead of view modifications after the fact, moving it to the
templating stage.