adding upload inventory view
changing CBV to function views
fixes IntegrityError bug
work in progress