Added some helper functions to BetterFragmentActivity