Made tabs work properly