Refactor and removed unnecessary code

HomeFragment refactoring