valuation.jsp and refactoring