minor refactor to make like and dislike function properly