Refactored order model and controller to separate creating and updating items