updated code to fix openToOrder and openToAppointment issue and delete service functionality. Also added OPTIONS and DELETE support