Refresh qml when the file name changed

The title of last tab was empty before. This is because the title is displayed when the number of tab is changed. Window.OpenFile will call NewFile first, and then set the file name. So we need to refresh it at the end of OpenFile function. I add a new callback function to the OnLoad event. 

This patch works on my machine.