added F8 function to toggle the calendar in diary mode