added plot to window