TabController and a little fix of a bug from the book