coded the basic GUI