Added related target to tab hide/hidden events

Related target contains the new tab to be shown