GUI basic functions. Still to test.