add option to store state change history and last update date for the state