updating background opacity