fixed case where main activity doesn't trigger onResume even though app is "alive", renamed methods for readability