update title of the main window