update power switch