added ability to reset WINDOW handle, also fixed colour