updated order button functionality