Logic for Calendar navigator