solving selection issue for active tab content