fix email button hide issue