added automatic tab when opening a file