graph/table set to initial value when closed and opened again