Factored out generic delete view and added invoice delete view