example code for order widget