refactors leave_review method