Modified bulk upload and bulk editing to work with many_many relations