Fixed dialog setDefaultButton (issue #39) and window size (issue #41)