checkCalendar client side improvement