enable tab index to be managed by popupManager

fixed #382