Updated code snippets for the orders grid