Before the rewrite for implementing a tab controller