added calendar state diagram