do not declare mainWindow locally - get it from abstract class