updating the brightness on dim up/down