Atomic functions in CompareChooseFragment, CompareShowFragment and MainActivity