added first code for code editor and tab view