added print params[:number]
added if conditions for item_controller bugs