change hidebyclickout way to mask