Correct the changeTab method and clean 2 imports

Correct the issue #3