fixed title string
added variables for adding historysteps
added history update logic