add reset logic when app activity is stoped or pause