made QDialog work in FormWidget