modify mask show and enble logic