Add loading and complete order function