setting opacity for the tooltip