Switching a relay on & off using a momentary push button

PreviousSwitchState is never updated.