Corrected calendar dialog setup.
Set history buttons inactive when appropriate.