set autoclose of calendar