Added directive to add orders and handle a callback