Some legacy rpui code (from v0.7.3) that people can learn from