be/popupbubble: copying placeholder attribute from context

In addition to this, also fixed up a lot of style.