Added AddTabButton in Tab bar and fixed a bug

The bug occured when double clicking a tab