fix issue 3, retain current tab index after orientation