diary modal issue