Temporaily creating window in the main function. This will be moved to an external object eventually