added the functionality for the complete order button