Order function and admin panel for order updated