add close other tabs and close all
improve the code