updated gui and added plot