calendar data query moved to state manager