refactored likes controller