update navbar opacity