implemented insertOrder functionality on front-end.
Finished orders refactoring.