Cleaning of the HomeFragment by remplacing the different listener with a unique switch.