refactored the reviews controller