formatting and some functionality of work orders and materials