Probably also want this again on line 74, just before the invalidate, so new title changes work dynamically.