added reset and save features