add onPause and onResume to save Akku