add visibility flag to Diary