need to fix onResume/onPause