Notebook switches to the newest tab upon opening a new file. The language is automaticaly guessed and syntax highlighting is set. The tab label sets to text to show the filename