fix js requirements for class loading
click on add opens file upload dialog
error modal reusage & other abstractions