added code to shutdow (halt) the Pi on button pressed