A few comments++
Not sure why I had parent in there, it's not used anywhere.
Half arsed window and button implementation.