functional iteration of tabs
tab and menu fix