add save/load feature for charts