fix the way to attach the tab