Adding ondevicechange event

To fulfill my pre-coffee-break obligations.

Sorry about the whitespace.  My editor removes it.  So should yours.