Changed data type of saveDetails to void