recommendation system now works, controller code is too much, needs to be moved to the model