refine code 2

delete auto-generated interfaces in fragment class, consider activity
lifecycle