Save changes for message function