Refactored and cleaned up the 'initHomeFragment' method in the main activity