Pause app if deactivated / Resume if activated