controller for printing order