Updated definition js to support number input, and the popup dialog for item details page