Beginning of the GUI part