fixed warnings
test for swiping/switching between tabs added