fix to invoke handler of first active tab