small tweaks in the calendar script