Correctly disable/enable calendar