handler for close button on the order page