saving changes; added analytics