Do something about CloseButton and checkBlank function.