adding title to the main window