reload page after update and add doc type to purchase