eliminated repetition in likes controller