Why doesn't this use `set_title`? 

I think `props` and the bunch of code below it should be replaced with three calls to `set_title`.