Fixed the Tab display issue
Made element insertion jQuery style