added order metadata and more order views, fixed some bugs