Revert "fixes issue when switching tabs"

This reverts commit 18ee4e5ff91d24bc91037cd305cabf575a99ab4f.