fix based on 5c0d48dec7c606502e34dbeb5abb283de636b443 - fixes tab functionality problem onOrientationChange