add function about single tab