create a main GUI