Making Klotski work with a tabController