add gui for state history