tabs event handlers