working on the TabOnClickEvent