refactored the repository to a trait, fileupload is not working atm (I assume a jquery version bug)