implemented "Save selected" button