update opacity for loader