update max brightness level