several small improvements. the memory leak fix is important

Please review removing the yields, from what I can see they aren't needed, but if there is any problem just revert it.  The Raise() is needed in wx-3.0