add calendar logic