Add code to check for a like before calling backend

add some console.log statements