Setup the gui of main