Fixed can't find Functions error in calendarController