support sizes for dialog
introduced windowClass for windows