added function markMessageAsSaved