updated the model and view for many to many