Fixing counting likes bug. Refactoring likes functionality