refactored book rec controller