all this for a functional calendar control