add function to set screen brightness