add .active class to tab item when it is active. add onActiveTabChanged event for tabbar