added the onPause event, app version 0.0.3