implement the base code launching the application and its central window