Changed handling for editing, deleteing, and adding orders and items