Deleted mainform and added changed to form class