Edit line item bugfix

Fixed functionality to allow line items to be edited properly. Edit functionality was not yet implemented.