Adjust title of main window