Make mainwin a derived class from a generic webwin class