automatically close display