saving dialog and saving measures and foto