CreateWindow, loadUrl and new constructor