added global brightness setting