Reason why I put it in here is, that you might hit ```<b>``` while the Bookmarks dialog is open, it would not get updated when moved out.
(You meant moving it out of the static functions, and into the OnMessage function, right?)