created order history, fixed redirect in purchase controller
fixed code in order history to display correctly
Merge branch 'history'