updated graph and gui