Added note saving functionality