Added onPause e onResume