changes for graphical interface