Adding onStop Lifecycle in main activity