This should be a title callback -- look at how Biblio UI now deals with it.