make it work with wx3.0