Added functionality to orderHistory

Included option to only show open orders and added close date to table