refactoring likes e comments