-Complete fix for Split tabs function