updated the gui source code