Buggy example of implementing tabs