before add event handler of tab component