Adding main() method to the GUI Form