worked on addtab functionality using modal