That was already done in the code you found from me… just no ON/OFF power button… but could be added.
Found a more complete code posting