route to correct template, and fix logic
add additional logic to edit_invoice.html