adding a graphical interface