implemented save button (partial)