likes controller edits to have functional api call