assign files to categories when submitting dialog