added back the callback to make the window handles work.