adding calendar toggle functionality