fixing edit and create to match many to many functionality