Refactoring so that Tabs acts as the controller
Updating example