Allowed for hiding of close button