Revert "Fix for subtabs showing regardless if the parent tab is selected"

This reverts commit 589eaba75c32a27b190521a42e1927a35c654a46.