adding start of main function or gui.