a new file

a new file gui.c which handles the gui details