Refactoring ActivityMain

BehaviorFragment moved into its own class.