removed main menu and added an auto-update function on the graph