update code for order query form